package main.Trees;

import java.util.ArrayList;
import java.util.List;

public class smetTreeNode
{
	private String name, code, strNum, unit;
  private Double volume, cost, hr, mr, percent;
  public Boolean isString;
  public String type;
	private List<smetTreeNode> children = new ArrayList<smetTreeNode>();
  private ArrayList<String[]> rsrc = new ArrayList<String[]>();
	
	public smetTreeNode()
	{
	}
	
	public smetTreeNode( String strNum, String code, String name, String unit, Double volume, Double cost, Double hr, Double mr, Boolean isString ) 
	{
    this.strNum = strNum; this.code = code; this.name = name; this.unit = unit; this.volume = volume; this.cost = cost; this.hr = hr; this.mr = mr; this.percent = 0.0; this.isString = isString;
	}
	
	public String getName() { return name; }
	
	public void setName(String name) { this.name = name; }
	
	public String getCode() { return code; }
	
	public void setCode(String description)	{	this.code = description; }
	
	public List<smetTreeNode> getChildren() {	return children; }
	
  public ArrayList<String[]> getRsrc () { return rsrc; }
  
	public String toString() { return "SmetTreeNode: " + name + ", " + code; }
 
 	public String getStrNum() { return strNum;	}

	public String getUnit() {	return unit; }

	public Double getVolume() {	return volume; }

  public Double getCost() {	return cost; }

  public Double getHR() {	return hr; }

  public Double getMR() {	return mr; }
  
  public Double getPercent() { return percent; }

  public void setPercent(Double percent) { this.percent = percent; }
 
}